import BaseFlowNode from '../BaseFlowNode'
import {assignInWith} from 'lodash'
import {FlowNodeType} from "../../types/index";
import type {FlowNodePropsType,FlowNodeFormConfigType} from "../../types/index";

export default class TriggerNode extends BaseFlowNode {
    constructor( props:Partial<FlowNodePropsType>={},
    ) {
      let basePops:FlowNodePropsType={
        header: { icon: 'icon-chufaqi', title: '触发器', bgColor: '#35b881',color:'white' },
        description: '请设置触发条件'
    }
        super(
            '触发器节点',
            FlowNodeType.TRIGGER,
            assignInWith(basePops,props),
            {}
        )
    }
}
